package com.mc.read.dao.mapper;

import com.mc.read.dao.models.Userbook;
import com.mc.read.dao.models.UserbookExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserbookMapper {
    int countByExample(UserbookExample example);

    int deleteByExample(UserbookExample example);

    int deleteByPrimaryKey(Integer userbookid);

    int insert(Userbook record);

    int insertSelective(Userbook record);

    List<Userbook> selectByExample(UserbookExample example);

    Userbook selectByPrimaryKey(Integer userbookid);

    int updateByExampleSelective(@Param("record") Userbook record, @Param("example") UserbookExample example);

    int updateByExample(@Param("record") Userbook record, @Param("example") UserbookExample example);

    int updateByPrimaryKeySelective(Userbook record);

    int updateByPrimaryKey(Userbook record);
    /**
     * @Author:LiuHao
     * @Date:15:24 2019/5/31
     *更新用户阅读的书籍 updateUserBook
     **/
    int updateUserBook(Userbook userBook);

   List<Userbook> selectByUserBook(Userbook userBook);
}